<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>EdgeSplitModifier - Three.js Docs</title>
	<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
	<script src="../scripts/highlight.min.js"></script>
	<link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
	<link type="text/css" rel="stylesheet" href="../styles/page.css">
</head>
<body>
	<h1 translate="no">EdgeSplitModifier</h1>
		<section>
			<header>
				<div class="class-description"><p>The modifier can be used to split faces at sharp edges. This allows to compute
normals without smoothing the edges which can lead to an improved visual result.</p></div>
				<h2>Code Example</h2>
				<div translate="no"><pre><code class="language-js">const modifier = new EdgeSplitModifier();
geometry = modifier.modify( geometry, Math.PI * 0.4 );
</code></pre></div>
			</header>
			<article>
				<h2 class="subsection-title">Import</h2>
				<p><span translate="no">EdgeSplitModifier</span> is an addon, and must be imported explicitly, see <a href="https://threejs.org/manual/#en/installation" target="_blank" rel="noopener">Installation#Addons</a>.</p>
				<pre><code class="language-js">import { EdgeSplitModifier } from 'three/addons/modifiers/EdgeSplitModifier.js';</code></pre>
				<div class="container-overview">
					<h2>Constructor</h2>
					<h3 class="name name-method" id="EdgeSplitModifier" translate="no">new <a href="#EdgeSplitModifier">EdgeSplitModifier</a><span class="signature">()</span> </h3>
					<div class="method">
					</div>
				</div>
				<h2 class="subsection-title">Methods</h2>
					<h3 class="name name-method" id="modify" translate="no">.<a href="#modify">modify</a><span class="signature">( geometry : <span class="param-type"><a href="BufferGeometry.html">BufferGeometry</a></span>, cutOffAngle : <span class="param-type">number</span>, tryKeepNormals : <span class="param-type">boolean</span> )</span><span class="type-signature"> : <a href="BufferGeometry.html">BufferGeometry</a></span> </h3>
					<div class="method">
						<div class="description">
							<p>Returns a new, modified version of the given geometry by applying an edge-split operation.
Please note that the resulting geometry is always indexed.</p>
						</div>
						<table class="params">
							<tbody>
								<tr>
									<td class="name">
										<strong>geometry</strong>
									</td>
									<td class="description last">
										<p>The geometry to modify.</p>
									</td>
								</tr>
								<tr>
									<td class="name">
										<strong>cutOffAngle</strong>
									</td>
									<td class="description last">
										<p>The cut off angle in radians.</p>
									</td>
								</tr>
								<tr>
									<td class="name">
										<strong>tryKeepNormals</strong>
									</td>
									<td class="description last">
										<p>Whether to try to keep normals or not.</p>
										<p>Default is <code>true</code>.</p>
									</td>
								</tr>
							</tbody>
						</table>
						<dl class="details">
							<dt class="tag-returns"><strong>Returns:</strong> A new, modified geometry.</dt>
						</dl>
					</div>
				<h2 class="subsection-title">Source</h2>
				<p>
					<a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/modifiers/EdgeSplitModifier.js" translate="no" target="_blank" rel="noopener">examples/jsm/modifiers/EdgeSplitModifier.js</a>
				</p>
			</article>
		</section>
<script src="../scripts/linenumber.js"></script>
<script src="../scripts/page.js"></script>
</body>
</html>